/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lucene.Analyzers;

import java.io.FileInputStream;
import java.io.IOException;
import lucene.WordNet.SynonymMap;

public class SynonymEngineWordNet implements SynonymEngine {

    private SynonymMap map;
    
    public SynonymEngineWordNet() throws IOException{
        map = new SynonymMap(new FileInputStream(
                "C:\\Users\\Livia\\Desktop\\ITA_5o ano\\TG\\WordNet\\prolog\\wn_s.pl"));
    }
        
    public String[] getSynonyms(String s) {
        return (String[]) map.getSynonyms(s);
    }
}